const fs = require("fs");
exports.s = function(path){
    return function(req, res, next){
        fs.readFile(path + req.url, (err, data)=>{
            if(err){
                res.write("404");
            }else{
                res.write(data);
            }
            res.end()
        })
    }
}